[mirrors]
http://distro.ibiblio.org/quirky/quirky6/sources/easy/pup-tools-20160527.tar.gz

[vars]
filesize=27989
sha512=9c4af91a6ef9000055f9f1cd1e2ef82655e93ce4a68c7e07ff78839518cfd3c988c6d32304ec1e41a4f00771cbc9044b5cce26511684e6c4701c242b48404e00
desc="Core utilities used in Puppy Linux, Quirky Linux and Easy Linux (and derivatives)"
tardir=pup-tools

[deps]
gtk+2
bacon

[build]
cd bacon
./build-pup-tools
cd ..
cd gcc
./build-pup-tools
cd ..
cd diet
#used to use dietlibc, but now building with musl...
gcc printcols.c -o printcols
gcc vercmp.c -o vercmp
gcc truncate.c -o truncate
cd ..

mkdir -p "$R"/local/pup_event
for AEXE in pup_event_frontend_d pup_event_ipc
do
 install -m755 -s bacon/$AEXE "$R"/local/pup_event
done

mkdir -p "$R"/local/simple_network_setup
for AEXE in proxy-setup
do
 install -m755 -s bacon/$AEXE "$R"/local/simple_network_setup
done

mkdir -p "$R"/local/petget
for AEXE in debdb2pupdb find_cat
do
 install -m755 -s bacon/$AEXE "$R"/local/petget
done

dest="$butch_install_dir""$butch_prefix"
mkdir -p "$dest"/bin
for AEXE in pngoverlay popup welcome1stboot
do
 install -m755 -s bacon/$AEXE "$dest"/bin
done
for AEXE in getcurpos
do
 install -m755 -s gcc/$AEXE "$dest"/bin
done
for AEXE in printcols truncate vercmp
do
 install -m755 -s diet/$AEXE "$dest"/bin
done

exit 0
